<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>API接口</title>
    <link rel="stylesheet" th:href="@{/layui/layui/css/layui.css}">
    <script th:src="@{/static/js/jquery-3.4.1.min.js}" type="text/javascript"></script>
    <script th:src="@{/layui/layui/layui.js}"></script>
    <style>
        body{
            font-family: 等线;
        }
    </style>
</head>
<body>
<div class="layui-main" style="width: 50%;margin-top: 50px;">
    <h3>请求地址：</h3>
    <table class="layui-table">
        <colgroup>
<!--            <col width="150">-->
<!--            <col width="200">-->
<!--            <col>-->
        </colgroup>
        <thead>
        <tr>
            <th>功 能</th>
            <th>接 口</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>请求方式</td>
            <td>POST</td>
        </tr>
        <tr>
            <td>请求地址</td>
            <td th:text="${domain}+'/clientupimg/'"></td>
        </tr>
        </tbody>
    </table>
    <br/>
    <h3>请求参数：</h3>
    <table class="layui-table">
    <thead>
    <tr>
        <th>参数名</th>
        <th>参数类型</th>
        <th>必 填</th>
        <th>参数说明</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>file</td>
        <td>file </td>
        <td>是</td>
        <td>图像文件</td>
    </tr>
    <tr>
        <td>email</td>
        <td>String</td>
        <td>是</td>
        <td>用户邮箱</td>
    </tr>
    <tr>
        <td>pass</td>
        <td>String</td>
        <td>是</td>
        <td>用户密码</td>
    </tr>
    </tbody>
    </table>
    <h3>返回参数：</h3>
    <table class="layui-table">
        <thead>
        <tr>
            <th>参数名称</th>
            <th>参数类型</th>
            <th>参数说明</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>code</td>
            <td>Number</td>
            <td>状态码，成功返回200，失败返回负数</td>
        </tr>
        <tr>
            <td>msg</td>
            <td>String</td>
            <td>提示信息</td>
        </tr>
        <tr>
            <td>data</td>
            <td>Array|Object</td>
            <td>图片上传后的信息</td>
        </tr>
        </tbody>
    </table>

    <h3>参数实例：</h3>
    <h3>
        <pre class="layui-code">
            //成功实例：
{
    "code": 200,
    "msg": "success",
    "data": [
        {
            "Imgname": "bloglogo.png",
            "Imgurl": "https://cdn.wwery.com/user/5dbfa0807100052.png"
        }
    ]
}

        </pre>
        <pre class="layui-code">
        //失败实例：
{
        "code": 200,
        "msg": "success",
        "data": [
        {
        "Imgname": "Tbed.zip",
        "Imgurl": "文件超出系统设定大小，不得超过"
        }
    ]
}
        </pre>
    </h3>

    <p style="color:#de4848;font-weight: bold;">上传头需要是Content-Type: multipart/form-data;</p>
    <br />
    <br />
    <br />


</div>

</body>
</html>